roundEnds
Type
property
Summary
Specifies whether lines have rounded ends or squared-off ends.
Syntax
set the roundEnds [of graphic] to {true | false}
Description
Use the roundEnds property to control the appearance of lines.
If the roundEnds of a graphic is true, the ends of lines are rounded, and so is the intersection of lines within the graphic. If the roundEnds is false, the ends of lines are squared off.
If the graphic's lineSize property is 1, the setting of the roundEnds has no effect.
If the graphic's style property is oval, roundRect, or curve, or if the graphic's lineSize property is less than 2, the setting of this property has no effect.
The global setting of the roundEnds property controls the appearance of lines drawn with the line, rectangle, polygon, or regular paint tools. Once a paint line or shape is drawn, its appearance cannot be changed by changing the global roundEnds property.
The roundEnds property is derived from the capStyle property and returns true if, and only if, the capStyle property is round. Setting roundEnds to true sets the capStyle to round, and setting the roundEnds to false sets the capStyle to butt.
The roundEnds property has no effect on Mac unless the graphic has its antialiased property set to true.
Examples
set the roundEnds to true
set the roundEnds of graphic "Connector" to false
Related
keyword: polygon, regular, line, rectangle, graphic
object: control
property: capStyle, style, joinStyle, dashes, miterLimit, roundRadius, lineSize
command: global
glossary: property, appearance, paint tool
Compatibility and Support
Introduced
LiveCode 1.0
OS
windows
linux
ios
android
Platforms
desktop
server
mobile